package teach;

public class Name {
    public static void main(String[] args) {
        Axx a = new Axx();
        a.Axx();
//        Bcc b = new Bcc();
//        b.Axx();
    }
}

class Axx{
    void say(){
        System.out.println("Axx");
    }

    void Axx(){
        System.out.println("sameName");
    }
}
class Bcc extends Axx{
    void say(){
        System.out.println("Bxx");
    }

}





